﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BasicWebSite.Forms.Dinamik
{
    public partial class hipotenus_hesaplama : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnHesapla_Click(object sender, EventArgs e)
        {
            double hypotenuse;
            double side1 = Convert.ToDouble(txtA.Text);
            double side2 = Convert.ToDouble(txtB.Text);
            hypotenuse = Math.Sqrt(Math.Pow(side1, 2) + Math.Pow(side2, 2));
            lblHipotenus.Text = hypotenuse.ToString();
        }
    }
}